// TrayDlg.h : header file
//

#if !defined(AFX_TRAYDLG_H__844DAF18_E873_4C84_A283_55FFB32150F7__INCLUDED_)
#define AFX_TRAYDLG_H__844DAF18_E873_4C84_A283_55FFB32150F7__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

/////////////////////////////////////////////////////////////////////////////
// CTrayDlg dialog

class CTrayDlg : public CDialog
{
// Construction
public:
	BOOL GetSerVer(void);
	BOOL ConnectServer(char* str);
	BOOL DownData(char* ftphost,int ftpport,char* ftpuser,char* ftppwd,char* rver,char* listfile,char* buf);
	void Reboot(void);
	int  rebootTime,m_mode;
	CTrayDlg(CWnd* pParent = NULL);	// standard constructor
	HWND hWnd;
	CWnd*  hw;
	WINDOWPLACEMENT wp;
	CString appStr1;
	CString appStr2;

	int port,i_port;
	CString Server;

	CString dqm;
	CString wdh;
	CString name;
	CString address;

	CString m_Path;
	CString	m_host;
	CString	m_user;
	CString	m_pass;
	UINT	m_port;
	CString	m_file;
	BOOL safe;
	UINT b_hotkey;
int KillProcess(LPCSTR pszWindowTitle);

// Dialog Data
	//{{AFX_DATA(CTrayDlg)
	enum { IDD = IDD_TRAY_DIALOG };
		// NOTE: the ClassWizard will add data members here
	//}}AFX_DATA
	int iApp;
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CTrayDlg)
	public:
	virtual BOOL PreTranslateMessage(MSG* pMsg);
	virtual BOOL DestroyWindow();
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CTrayDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnTimer(UINT nIDEvent);
	afx_msg LRESULT OnUpData(WPARAM  wParam,LPARAM lParam);
	afx_msg LRESULT OnStop(WPARAM  wParam,LPARAM lParam);
	afx_msg LRESULT OnStart(WPARAM  wParam,LPARAM lParam);
	afx_msg LRESULT OnStartWeb(WPARAM  wParam,LPARAM lParam);
	afx_msg LRESULT OnStopWeb(WPARAM  wParam,LPARAM lParam);
	afx_msg LRESULT OnStartCCB(WPARAM  wParam,LPARAM lParam);
	afx_msg LRESULT OnStopCCB(WPARAM  wParam,LPARAM lParam);
	virtual void OnOK();
	virtual void OnCancel();
	afx_msg void OnButton1();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_TRAYDLG_H__844DAF18_E873_4C84_A283_55FFB32150F7__INCLUDED_)
